CC = gcc
CFLAGS = -lpthread 
INCLUDEDIR = -I../protocol -I./room
OBJECTS = messageProcessor.o messageReader.o server.o ./room/room.o
TARGET = server


$(TARGET) : $(OBJECTS)
		gcc $(OBJECTS) -o $(TARGET) $(CFLAGS)

debug : $(TARGET)
		gcc messageProcessor.c messageReader.c server.c -o $(TARGET) -g $(CFLAGS) 
.c.o:
	 	gcc *.c -c $(INCLUDEDIR)

clean :
		rm -f $(OBJECTS) $(TARGET)
